﻿''' <summary>
''' A script item is the raw script that is to be executed.
''' </summary>
''' <remarks>There can be more than one ScriptItem per Script.</remarks>
''' <editHistory></editHistory>
Public Class ScriptItem

    Private _name As String
    Private _commandText As String

    ''' <summary>
    ''' Creates a new instance of the ScriptItem class.
    ''' </summary>
    ''' <param name="commandText"></param>
    ''' <remarks></remarks>
    Public Sub New(ByVal name As String, _
                          ByVal commandText As String)

        _name = name
        _commandText = commandText
    End Sub

    ''' <summary>
    ''' Gets the name that is associated with this ScriptItem.
    ''' </summary>
    ''' <value></value>
    ''' <remarks></remarks>
    Public ReadOnly Property Name() As String
        Get
            Return _name
        End Get
    End Property

    ''' <summary>
    ''' Gets the command text
    ''' </summary>
    ''' <value></value>
    ''' <remarks></remarks>
    Public ReadOnly Property CommandText() As String
        Get
            Return _commandText
        End Get
    End Property

End Class
